Internal affairs refers to the division or department within a law enforcement agency that investigates allegations of misconduct, corruption, or unethical behavior by its own officers or employees. It is responsible for maintaining accountability and integrity within the organization.